﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Domain.Entities.Auditing;

namespace TMS_Master.Entities
{
    /// <summary>
    /// 物资统计表
    /// </summary>
    [Table("Statistical_Goods")]
    public class Statistical_Goods: AuditedAggregateRoot<Guid>
    {
        /// <summary>
        /// 货物名称
        /// </summary>
        [Required]
        [StringLength(20)]
        public string StlName    { get; set; }      

        /// <summary>
        /// 类型
        /// </summary>
        [Required]
        public Guid TypeID     { get; set; }      

        /// <summary>
        /// 材质
        /// </summary>
        [Required]
        public Guid TextureID  { get; set; }      

        /// <summary>
        /// 规格
        /// </summary>
        [Required]
        [StringLength(20)]
        public string SkuName    { get; set; }       

        /// <summary>
        /// 产地
        /// </summary>
        [Required]
        public Guid AddrID     { get; set; }       

        /// <summary>
        /// 期间采购数量
        /// </summary>
        [Required]
        public int    CargoNum   { get; set; }       

        /// <summary>
        /// 期间采购数量
        /// </summary>
        [Required]
        public int    GoodsNum   { get; set; }       

        /// <summary>
        /// 期间采购数量
        /// </summary>
        [Required]
        public int SurplusNum    { get; set; }

        /// <summary>
        /// 统计区间
        /// </summary>
        [Required]
        [Column(TypeName ="date")]
        public DateTime CreateTime { get; set; }
    }
}